/*
 * @Author: rogi
 * @Date: 2023-01-16 09:28:23
 * @LastEditTime: 2023-01-18 18:45:06
 * @LastEditors: rogi
 * @Description: 描述
 */
const config = {
  test: {
    remotePath: "/share/nfs/test-szjf-centos-nginx-pvc-fe48b7ff-ecc1-4bf0-bcb7-ed1323268485/root/szjf-lessee/view/build/product", // 部署到服务器的路径
    host: "192.168.1.21", // 服务器地址
    user: "szjf", // 帐号
    pass: "szjf@123", // 密码
    port: 22,
    removeCurrentFolderFiles: true
  },
  preProd: {
    remotePath: "/root/lessee/view/build/product", // 部署到服务器的路径
    host: "106.55.169.106", // 服务器地址
    user: "szjf", // 帐号
    pass: "shuzi123.", // 密码
    port: 22,
    removeCurrentFolderFiles: true
  },
  prod1: {
    remotePath: "/root/szjf-lessee-prod/view/build/product", // 部署到服务器的路径
    host: "119.91.144.4", // 服务器地址
    user: "szjf", // 帐号
    pass: "shuzi123.", // 密码
    port: 22,
    removeCurrentFolderFiles: true
  },
  prod2: {
    remotePath: "/root/szjf-lessee-prod/view/build/product", // 部署到服务器的路径
    host: "106.55.169.106", // 服务器地址
    user: "root", // 帐号
    pass: "Shuzi123.", // 密码
    port: 22,
    removeCurrentFolderFiles: true
  }
}

const args = process.argv.slice(2);
const BuildEnd = args[0].split('BuildEnd')
const env = BuildEnd[0];
console.log('envenv', args, BuildEnd, env)

export default config[env]
